package com.buba.customer.service.impl;

import com.buba.customer.dao.CustomerLoginLogMapper;
import com.buba.customer.pojo.CustomerLoginLog;
import com.buba.customer.service.CustomerLoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 用户登录日志业务层实现类
 */
@Service
public class CustomerLoginLogServiceImpl implements CustomerLoginLogService {
    private CustomerLoginLogMapper customerLoginLogMapper;
    @Override
    public void addCustomerLoginLog(CustomerLoginLog customerLoginLog) {
        customerLoginLogMapper.addCustomerLoginLog(customerLoginLog);
    }

    @Override
    public Long selCount(Map<String, Object> map) {
        return customerLoginLogMapper.selCount(map);
    }

    @Override
    public List<CustomerLoginLog> selCustomerLoginLog(Map<String, Object> map) {
        return customerLoginLogMapper.selCustomerLoginLog(map);
    }

    @Override
    public Integer delCustomerLoginLog(String[] split) {
        return customerLoginLogMapper.delCustomerLoginLog(split);
    }


    public CustomerLoginLogMapper getCustomerLoginLogMapper() {
        return customerLoginLogMapper;
    }
    @Autowired
    public void setCustomerLoginLogMapper(CustomerLoginLogMapper customerLoginLogMapper) {
        this.customerLoginLogMapper = customerLoginLogMapper;
    }
}
